package xcmg.device.dao.entity.sale;

import java.math.BigDecimal;
import java.util.Date;

public class SalesOutBillDO {

    private static final Short OUTBOUND_STATUS_NO = 0, OUTBOUND_STATUS_PART = 1, OUTBOUND_STATUS_ALL = 2, OUTBOUND_STATUS_FINISH = 3;

    private String id;

    private String orgId;

    private String salesOutBillNo;

    private String borrowBillNo;

    private String salesBillNo;

    private String clientName;

    private String generatePerson;

    private Date generateDate;

    private String servicePersonName;

    private Short outboundStatus;

    private Short isState;

    private Date outboundDate;

    private String consignee;

    private String contactPhone;

    private String receiptAddress;

    private Short billType;

    private Short isPrint;

    private String outArea;

    private String outLocation;

    private BigDecimal totalPrice;

    private Short checkState;

    private String remark;

    private Short isDel;

    private Date createDate;

    private String createId;

    private Date updateDate;

    private String updateId;

    private BigDecimal costTotal;

    private Integer returnStatus;

    //sap销售单号
    private String sapSaleOrder;

    //零件号（sap过账用）
    private String materialsNo;

    //创建销售单状态
    private Short createSaleStatus;

    //发票号
    private String invoiceNo;

    public Short getCreateSaleStatus() {
        return createSaleStatus;
    }

    public void setCreateSaleStatus(Short createSaleStatus) {
        this.createSaleStatus = createSaleStatus;
    }


    public String getSapSaleOrder() {
        return sapSaleOrder;
    }

    public void setSapSaleOrder(String sapSaleOrder) {
        this.sapSaleOrder = sapSaleOrder;
    }

    public String getMaterialsNo() {
        return materialsNo;
    }

    public void setMaterialsNo(String materialsNo) {
        this.materialsNo = materialsNo;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId == null ? null : orgId.trim();
    }

    public String getSalesOutBillNo() {
        return salesOutBillNo;
    }

    public void setSalesOutBillNo(String salesOutBillNo) {
        this.salesOutBillNo = salesOutBillNo == null ? null : salesOutBillNo.trim();
    }

    public String getBorrowBillNo() {
        return borrowBillNo;
    }

    public void setBorrowBillNo(String borrowBillNo) {
        this.borrowBillNo = borrowBillNo == null ? null : borrowBillNo.trim();
    }

    public String getSalesBillNo() {
        return salesBillNo;
    }

    public void setSalesBillNo(String salesBillNo) {
        this.salesBillNo = salesBillNo == null ? null : salesBillNo.trim();
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName == null ? null : clientName.trim();
    }

    public String getGeneratePerson() {
        return generatePerson;
    }

    public void setGeneratePerson(String generatePerson) {
        this.generatePerson = generatePerson == null ? null : generatePerson.trim();
    }

    public Date getGenerateDate() {
        return generateDate;
    }

    public void setGenerateDate(Date generateDate) {
        this.generateDate = generateDate;
    }

    public String getServicePersonName() {
        return servicePersonName;
    }

    public void setServicePersonName(String servicePersonName) {
        this.servicePersonName = servicePersonName == null ? null : servicePersonName.trim();
    }

    public Short getOutboundStatus() {
        return outboundStatus;
    }

    public void setOutboundStatus(Short outboundStatus) {
        this.outboundStatus = outboundStatus;
    }

    public Short getIsState() {
        return isState;
    }

    public void setIsState(Short isState) {
        this.isState = isState;
    }

    public Date getOutboundDate() {
        return outboundDate;
    }

    public void setOutboundDate(Date outboundDate) {
        this.outboundDate = outboundDate;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee == null ? null : consignee.trim();
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone == null ? null : contactPhone.trim();
    }

    public String getReceiptAddress() {
        return receiptAddress;
    }

    public void setReceiptAddress(String receiptAddress) {
        this.receiptAddress = receiptAddress == null ? null : receiptAddress.trim();
    }

    public Short getBillType() {
        return billType;
    }

    public void setBillType(Short billType) {
        this.billType = billType;
    }

    public Short getIsPrint() {
        return isPrint;
    }

    public void setIsPrint(Short isPrint) {
        this.isPrint = isPrint;
    }

    public String getOutArea() {
        return outArea;
    }

    public void setOutArea(String outArea) {
        this.outArea = outArea == null ? null : outArea.trim();
    }

    public String getOutLocation() {
        return outLocation;
    }

    public void setOutLocation(String outLocation) {
        this.outLocation = outLocation == null ? null : outLocation.trim();
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Short getCheckState() {
        return checkState;
    }

    public void setCheckState(Short checkState) {
        this.checkState = checkState;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Short getIsDel() {
        return isDel;
    }

    public void setIsDel(Short isDel) {
        this.isDel = isDel;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId == null ? null : createId.trim();
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId == null ? null : updateId.trim();
    }

    public BigDecimal getCostTotal() {
        return costTotal;
    }

    public void setCostTotal(BigDecimal costTotal) {
        this.costTotal = costTotal;
    }

    public Integer getReturnStatus() {
        return returnStatus;
    }

    public void setReturnStatus(Integer returnStatus) {
        this.returnStatus = returnStatus;
    }

    public boolean canPost() {
        return OUTBOUND_STATUS_ALL.equals(this.outboundStatus)  || OUTBOUND_STATUS_FINISH.equals(this.outboundStatus);
    }

    public String getInvoiceNo() {
        return invoiceNo;
    }

    public void setInvoiceNo(String invoiceNo) {
        this.invoiceNo = invoiceNo;
    }
}